lib/helpers/db.js