middle layer commit database middle layer might be redundant screwed up tables.sql isn't re-useing connections