Create BaseQuery.php