Implemented database on the server

Requires MongoDB database running on same machine as server.
(https://www.mongodb.org/)