connected to db and successfully get the data