Finished database implementation.

Prepping for testing and release!