Add make_key

Additional regexp to remove $ and . cachaters, as they cause special behaviour in mongodb