added new routes, refactored actions with db