working on /weekly using sqlalchemy