support django 1.4

django 1.4 use some MySQLdb internal functions and wrapped the converters like convert_datetime.  in that case I add functions and refactor converters make it similar to MySQLdb's.