added docstring to service.get_db()