make query.js for using Mysql

next is that function apply in server.js