There's now a function for checking if a database exists or not. Solves the bug where you ask for an entity that doesn't exist or doesn't have any revisions