added sqlite test database functionality