Pws back-end operation with MongoDB