Making the UI handle any db name

Fixes #2