Fixed database selection bug in MySQLDAL