updated database and semi-functional save activity