downloading data from database to app