Fixing a query (I think) and adding logging to Slick (I think)