Updated tests.
Updates docs for database usage.