Changes for PostgreSQL and MySQL

Hi,
I've done some changes to fit my needs:
- Added connection charset on MySQL
- Corrected some conection problems with PostgreSQL
- Added port support for PostgreSQL
- Added disconnect functions for MySQL and PostgreSQL

Maybe my changes might help others.

Best regards

Stefanie