Add $table parameter to query factory methods

Only applies to select, insert, update, and delete methods
I wasn't sure about this, but it seemed incorrect, because there is no situation where a `Table` object would already be created at this point. Tests pass, so I assume it was not being used anywhere.