Plain: fixed db update to be compliant with the requirements

This should fix issue #548.