Add memcache entries for custom_attrbitues, fix db_downgrade