add update(database) functionality