Split up database work into seperate table classes.