Code feedback, and added docstrings to database unit tests.