some pendatic stuff; prefer explicitness

There is one bugfix in here, server/database.js#54, callback was firing twice.