Remove non-null constraint from app_categories, add hook in Application to populate parent tables