connect to db fetch the record
commit by:kumar vayyala