Removed global variables and added semicolons to dbhelper.js