fixed database functions, added callbacks
Merge branch 'mongoDev' of github.com:LittleEye/DataStorage into mongoDev