move db init/open functions into a single file
move password handling into a single file
Merge pull request #10 from jlatt/cleanup

cleanup