need to figure out how to put the database session in the let