[PR] Flush rewrite rules on initial activation

Or if a DB version doesn't exist.