update form filters and payload builders to use new database gateways
update payload consumers to use database gateways
update query helper to use new gateways
remove unused classes
clean up loose ends removing old database code