Added WITH-TRANSACTION macro to db interface