add function for listing db files

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