Database creation and document creation now working without 3rd party packages.
Some documentation and sanity checks. Also working at getting get_jid and get_jids to work. No luck yet.