Change from $smcFunc to $db
Signed-off-by:Joshua Dickerson <joshua.a.dickerson@gmail.com>