Added add/update/delete page logic to mongo