Johnj foo

Updated aliases and sync_keys scripts to use a hash reference when dealing with databases results instead of an array.  Also ran perltidy and fixed perlcritic warnings.