bad merge, re-adding postgres cases