Add db layer and api prototype

Andrey Veltischev requested to merge andrey/api into master

Merge request reports