simplify api controller code
Added indexes for pmid, pmcid and canonical_url columns