Use more dibi magic / add PostgreSQL support

I haven't touch the upgrade part yet
plugins/action.updater/class.AjaXplorerUpgrader.php