Fixes for the static singleton thingie of DbTable.

Signed-off-by: Norv <a.w.norv@gmail.com>
Add public for the static method, since we already did that once.

Signed-off-by: Norv <a.w.norv@gmail.com>
Refactor the new calls for former 'packages' functions -> calls to dbtable methods.

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