Edited MySQL connection