added conditions parameter for fetch and fetchAll methods