fix postgres reference