db references new methods and test cases 

Signed-off-by: nickolayrusev <nickolay.rusev@gmail.com>