fixing error on adding postgres