getting data for public database