add source code to access to test database