Move outdated queries selection logic to model.
Update .gitignore.
Schedule refresh_queries using celery_beat.