MySQL query methods changed