Init rest-api. Define domain.

Merge db-scheme and REST API