Conditial wrap around db gems