added draft of DB service