test refactoring, use of database to share values with subshells