update config for prod database
api access from other domains
refactor positions handler and add fields to model.