Move portion of Express.js logic from server.js to dbHelper.js