added feature to add records to db hibernate