slight changes to dbConnector.js