db->query to mysqli_query