fix ovs plugin to work with postgresql

Validation for postgresql was wrong.