Add the method closeConnection() and remove rowCount() for the update method (mysql issue)