DB.withConnection is other way . How ever, would you kind to post your code ? have no idea what the best code to show example .