php 5.2 compatibility fixes, and pgsql related bugfixes
fixed data table import bug with pgsql databases
bugfix for some php config related database selection
php 5.2 and nginx related compatibility updates
Merge github.com:Samnan/MyWebSQL

Conflicts:
	lib/db/manager.php
	lib/db/mysql4.php
	lib/db/mysql5.php