Used javax persitence to interact with the MySql database and now records are getting inside the db