Fix reload flag on database change