added tests for sql db manager