A Tennessee official has resigned from his position after he was stupid enough to splash racist posts all over his Facebook page.David Barber was the deputy director of Shelby County Corrections Center until he decided to flaunt his racism on social media. In one post, Barber said that the Ku Klux Klan  is more American than  the nation s first black president.Image via SlateIn another post, he called the president  obummer  and said he hoped the Muslims would kill him and  mooshelle as queers. Image via Local MemphisShelby County Mayor Mark Luttrell said that he was appalled when he read Barber s racist posts. I was offended,  he said.  I think anybody who read it would be offended. It was horrible. It was very offensive. According to Luttrell, he was informed about the posts on Friday. His department decided to investigate Barber before firing him and he then resigned on Tuesday. The mayor said that Barber apologized but still may have been fired if he had not decided to resign on his own. He was very contrite, very apologetic. He recognized that he made a mistake,  Luttrell said.  I don t know [why he did it]. That s a question only he can answer. Luttrell added that even though the posts were written on Barber s personal Facebook page, that page also identified him as a government employee. This was an action by an employee who should have known better. What he did, his behavior was intolerable; it was offensive. We afforded him his rights and due process. He recognized his discretion and [resigned],  Luttrell said.Luttrell noted that he isn t sure Shelby County currently has a formal social media policy. But he said if they don t, they will very soon.Luttrell s interview can be seen here: Watch more on this story, here: | WBTV CharlotteFeatured image via Local Memphis