changed some db stuff and added autowired classes instead of .class as beans in routes