Added logs for DB queries. Save to redis instead of hdfs