fix type, add function to convert db tables to utf8