move sqlite to test environment
add root path and tests
merge envelope controller