some fixes to db function and addition of DNS and DNF

Signed-off-by: Tim Traver <ttraver@mivamerchant.com>