Fixed mysql_database issue