dicts: don't try to expand path if sipdir not defined
databaseFunctions: add docstrings
databaseFunctions: add tests