db update and code update