Update install script to db layer

Signed-off-by: Norv <a.w.norv@gmail.com>
Update upgrade script to db layer

Signed-off-by: Norv <a.w.norv@gmail.com>
Use $this reference instead of another set of calls. Remove compatibility for several functions.

Signed-off-by: Norv <a.w.norv@gmail.com>
Remove compatibility for most functions.

Signed-off-by: Norv <a.w.norv@gmail.com>
Cleanup a bit and remove compatibility with $smcFunc.

Signed-off-by: Norv <a.w.norv@gmail.com>
Use $this in the db class. Fix useless creation.

Signed-off-by: Norv <a.w.norv@gmail.com>
Update Sqlite bd class; the db is $this in the class.

Signed-off-by: Norv <a.w.norv@gmail.com>
Update Postgres db class.

Signed-off-by: Norv <a.w.norv@gmail.com>
Merge pull request #437 from norv/database3

Db layer updates (3)