database getting updated