combining fetchdata, db, map, ugly version