last change to database.js before refactoring into OO style code.