refactor(api): change every reference from domain to origin in the code and db