Check correct use db->getValue()