Cleanup db_packages_init().

Signed-off-by: Norv <a.w.norv@gmail.com>
Rework queries in DbTable_SQLite. Fix methods from Db classes.

Signed-off-by: Norv <a.w.norv@gmail.com>
Plain ole' search/replace ftw, a number of more occurrences of DbTable updated.

Signed-off-by: Norv <a.w.norv@gmail.com>
Update DbTable for MySQL. Kill all occurrences of $smcFunc...

Signed-off-by: Norv <a.w.norv@gmail.com>
Update DbTable for PostgreSQL. Remove $smcFunc.

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