Fixed up testdb for all the new changes so that we can test without databases. (for UI testing and dev)