fixing activity creation to access db (in progress)