Implements per domain databases and transactions