updated MySQL connection for the constructor to accept arguments