diff --git a/apiary-persistent.cabal b/apiary-persistent.cabal
--- a/apiary-persistent.cabal
+++ b/apiary-persistent.cabal
@@ -1,5 +1,5 @@
 name:                apiary-persistent
-version:             0.11.0
+version:             0.12.0
 synopsis:            persistent support for apiary web framework.
 description:
   example: <https://github.com/philopon/apiary/blob/master/examples/persistent.hs>
@@ -21,7 +21,7 @@
   other-modules:       
   build-depends:       base               >=4.6   && <4.8
                      , persistent         >=1.3   && <1.4
-                     , apiary             >=0.9   && <0.12
+                     , apiary             >=0.12  && <0.13
                      , monad-logger       >=0.3   && <0.4
                      , resourcet          >=1.1   && <1.2
                      , mtl                >=2.1   && <2.3
diff --git a/src/Web/Apiary/Database/Persist.hs b/src/Web/Apiary/Database/Persist.hs
--- a/src/Web/Apiary/Database/Persist.hs
+++ b/src/Web/Apiary/Database/Persist.hs
@@ -63,6 +63,6 @@
     => SqlPersistT (ResourceT (ActionT n)) a
     -> ApiaryT (Snoc as (UnBool a)) n m b
     -> ApiaryT as n m b
-sql p = focus $ \l -> do
+sql p = focus id $ \l -> do
     r <- runSql p
     maybe empty (\i -> return $ sSnoc l i) $ unBool r
