Improved PDO_MYSQL handling, prepared support for other databases as well