Added where operator to db class