Recreate index tables for better performance
Rename test classes to end in 'Test.php'
Cache visibility on entity to avoid multiple is visible queries on category entities
Remove superfluous unique index since they now are PRIMARY anyway