fix deal types for postgres, add an options endpoint, and prepare for deployment