Add support for working with databases directly