used utf8 encoding and removed create database and use database query