Adapted services to database.