    public String getStudentId(final long id)
    {
        Cursor c = null;
        try
        {
            c = getDatabase().query(
                    Signature.TABLE_NAME,
                    new String[] { Signature.STUDENT_ID },
                    Signature._ID + "=?",
                    new String[] { Long.toString(id) },
                    null ,
                    null ,
                    null );
            if (c != null && c.moveToFirst())
            {
                return c.getString(0);
            } 
            return null;
        } 
        finally
        {
            if (c != null)
            {
                c.close();
            } 
        } 
    } 

    public String getStudentId(final long id)
    {
        Cursor c = null;
        try
        {
            c = getDatabase().query(
                    Signature.TABLE_NAME,
                    new String[] { Signature.STUDENT_ID },
                    Signature._ID + "=?",
                    new String[] { Long.toString(id) },
                    null ,
                    null ,
                    null );
            if (c != null && c.moveToFirst())
            {
                return c.getString(0);
            } 
            Log.e(TAG, "Failed to get student ID for " + id);
            return null;
        } 
        finally
        {
            if (c != null)
            {
                c.close();
            } 
        } 
    } 
