removed convert function, modified sql charset