upating database