Refactor the new calls for former 'packages' functions -> calls to dbtable methods.

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