added vm and stubbed sqlwrapper