Fix db selection. Fixes #31.