add db updating feature