fix postgresql db deserialization tests