added a bit more intelligence to set/getCache, more async fixes, and working tests for dbmodel