issue #13 Database API

Database manager  tests added
issue #13 Database API

Refactoring
issue #13 Database API

Refactoring