Safety commit. Further implementations of server and databasemanager. Current Task: Figure out howto cope with the non-blocking mongodb api.