Change default postgresql version for old releases
More fixes for old releases
Remove buggy code : copy keyname to database field
Add and test postgresql wrapper