Backend implementation with mongodb