bug fix on database operator extraction