Extended MySQL Adapter to allow the use of unix_sockets as well as TCP/IP connections.

Moved creation of mysql dsn into a separate function to allow decision wether to use unix_socket or tcp socket connection.