updated database and its interaction