Extract database name into a variable.

Signed-off-by: Thiago Farina <tfarina@chromium.org>