Split out db helpers from server. Corrected comma error in package.json