move the database to service. It should not be used outside of it.