Added methods to get a database.