Fix global occurrences of $db that were in place. (remove them)

Signed-off-by: Norv <a.w.norv@gmail.com>