Investigating adverse effects of psychiatric drugs through data-mining of electronic health records