improve db update scripts