added adjustments to enable postgres