Changed protocol and file operation db fields to int from char

Should make for much faster index searches later on
JSON client now uses enums for file operations

To match the database adjustments in the last commit