services: fix insertion with sandbox and fix error message on insertion failure
services: make alias unique
rest: open middlewares