Merge "Cast to bool in Database::update"