create the database if not exist when connecting (mysql)

create the database if not exist when connecting to sql server for mysql.