Creating connection and connecting to MySQL