updated database close