Break db methods out into their own class