add dbsize function to the mock