Fix path index for session name
Track sessions in mongodb collection
Use int values for PID in MongoDB metadata