more multi-db work and replacing flask w bottle