biforcating queries.php as with and without INSERTS