converted /weekly url to use sqlalchemy and created defaultdict for weekly rates