fixed not valid database names and added validation after create database command