refactor(server) improve mock db