add DBAdapter, haven't tested it yet