maybe possible with Database.Esqueleto after all