public void closing() {
        try {
            connection.close();
            statement.close();
            if(resultset != null)
                resultset.close();
            if(preparedStatement != null)
                preparedStatement.close();
        } catch (SQLException ex) { System.out.println(errors.getError(514, ex)); }
    }