fixed activity creation to create table entry in db