added code to create test db