Added documentation. Setup database test.