fixing mysql-connection errors