added mongoose model
improved mongoose model generator