Fix query in PreDB.php