db_postgres: init DB API lib in mod_register()
- this will initialize the sql buffer at module load time, avoiding
crash at startup if a module using the DB driver is loaded before the
db driver itself
- reported by Timo Teras
(cherry picked from commit b3b34accb2f65ccef6045b083879166cb1a1e060)