move db setup to domain package