Fixing quality database deserialisation