add database adapters and test file for database adapter