Added passing reference to sql (sql bricks) module for where calls.