Add $table parameter to query factory methods

Only applies to select, insert, update, and delete methods