minor optimizations to queries on home screen [Starts #74351998]
fixed migration name that breaks in production env