Removed usages of async in favor of Q in database module
Removed usages of async in favor of Q in database module
Removed usages of async in favor of Q in database module
Added mongoose.js TypeScript definition and used it
Refactored getLastTransaction() with using of Q
Refactored database functions with using of Q