Change loyalty table format due to mdbtools changes
Some rails_best_practise changes