as long as you don't need the db variable anywhere else in the source file we could say directly

var userModel = require('../../db').model('user');