fixed error in database.js

removed extra http://