Added fixes for deployment issues
mongoose schema, TODO mongoose models