Check item value nil in template
WIP: Try not to store nil values in the document
WIP: improve testing of CJ input
WIP: set up so that tests can use different db
WIP: Fix db port method
WIP: create separate setup script for test database