Fixed missing db name and if not exist create db