Initial database service.

[Review issue ]