Implemented the server db
Implemented unit tests