working out dbclient API