database queries use mongoose now