sample script using mongoose and mongodb