public boolean exists(String where) {
        String query = "SELECT * FROM '" + m_name + "' WHERE " + where;
        ResultSet result = m_database.queryResult(query);        
        if (result == null) {
            return false;
        }

        try {
            boolean exists = result.next();
            return exists;
        }
        catch (SQLException ex) {
            return false;
        }
    }