changed database.js

removed old functions from database.js