Add mongoose
Add simple api for errors