Makes the database reads not throw exceptions.