add DB-handling miscellany