Java - Spring MVC with database connectivity