Add some documentation blocks to the database functions.
Add some tests for password type to prove existing bugs.
Fix allowing null passwords and for persisting an updated hash; ref #49
Small fix for python 2.x