Rewrote DAO layer and DB layer, used properly @Autowired and other stuff