Fixed mysql_database_issue