Prepared Database interface & implementation for autotesting. Implemented basic autotests. Fixed bugs they've found.