set app up for postgresql