bullit proof Setup

If zenphoto or the server is mis-configured setup could fail in its
initial startup. This change detects missing database support for the
configured database and overrides the config file setting. It also
provides a "NULL" database handler if no zenphoto supported databases
are configured in PHP.