some tests, some db code, not all rigged up yet.