Disabled database session; switched to MongoDb; fixed id encoding issues