Derived tables (materialized views) for mysql