Fixed issues with spring config files. Connecting to database via JPA instead of hibernate.