Adapted old Oracle VPD to MySQL DB: all tests passing