fix context dao, return context model when created