Integration with mongodb