Working push and pull for mongodb