more progress on getting app to work with postgres