update db fixed