Created a seperate thread of execution for Hibernate(database) setup and operations