Setup hibernate and mysql. In Main I am writing to the database