New tests for db manager

please remove all //liron comments throughout the  code.