Correct, code is the only way to accomplish your goals. Going through your numbered list here's what I think it would take:
1) I am pretty sure this can be done using our standard record & playback i.e. our standard non-coded steps.
2) Using this code sample as a reference, pull the ID out of the database.
3) As part of step 2 above simply store it in a global variable in code.
4) Using this code sample as a reference, use the ID stored in the variable in code to find the UI element you're after.
I hope that gives you some idea how to implement a test that will achieve your goal.
All the best,
the Telerik team