Our Citing Special Sources guide explains how to cite online drug databases in AMA or APA format.

Citing Medicine: Databases/Retrieval Systems on the Internet (National Library of Medicine) gives examples for citing databases in NLM format.

The Purdue Owl APA Electronic Sources web page includes examples of citing many different kinds of online sources.