keeping behavior of db query executor consistent in terms of where
statements are closed by moving put execution logic into the class
itself.