Code review PR

In addition to `table` I think we also want to support taking in a SQL query when there is custom processing they want to push into the DB.