Added the dummy database engine
Fixed my faulty logic