Creating database and service.