add table_id that was already required
clean imports
whitespace
end to end wiring of filters through to the database