database revision and add model testing controller