a httpservice used for getting data from database