db->query() does not return false