added activerecord for questions and categories and integrated with redis queue