It is the second one. The whole phrase beginning with "when" IS the object. "Question-word phrases" can often act as grammatical objects. This is more common in casual speech than in formal writing, but as you can see, it IS occasionally used even in very formal texts.
"He examined how it was done."
"I like how you do that."
"We discovered why it occurred."+
If you wanted to create a sentence with the first meaning, you would have to use another tense. Future perfect would be best.
"...shall confirm and announce a date by which the database **shall have achieved** full functionality."
If you use present perfect in the same sentence as future simple, the verb in present perfect occurs FIRST.
"I will eat when you have sung"="I will eat AFTER she has sung"
Of course, in that sentence the "when" phrase was acting as an adverb. Here's a sentence where it]'s acting as an object:
"The Japanese Weather Service will let the public know when the cherry trees have blossomed"=After the cherry trees blossom, the Weather Service will reveal that fact (=the fact that they have blossomed) to the public.