Always check if the database exists.