Update sql query

Add database creation if not exists
Merge branch 'master' of https://github.com/Net2mobi/NET2MOBI