DB Unit test added

Added a unit test for the DataBase.