getting data form db