Use of automated databases for pharmacoepidemiology research.