CDB: Pass string by reference

Change-Id: Iae3554e70105de1a526932b5c3f8c36485c1eab7
Reviewed-by: David Schulz <david.schulz@digia.com>