Add some helpers for the SQL wrangling.
Build the sql query using sqlalchemy