function to create database and user on mysql