task switch to mongoose from custom dao