added DB AIfield function
read $server_type from autoconf
Better error handling

This code is needed for running php without mysql extension
Installer fixes