simpler db access

Signed-off-by: Mattias Andrée <maandree@operamail.com>
m + support for --entire in dbctrl

Signed-off-by: Mattias Andrée <maandree@operamail.com>