Added database saving and activity creation dialog