Implement database.

Signed-off-by: Michael Howe <mike@mcsnetworks.com>