Filling the database with downloaded data