added mongoose configuration and user model