Setting up Hibernate and database.