Code review. Database operations moved from services to repositories.