fixed db update to be compliant with the requirements