Crash fix : use correct string formatting for str.Format()
Bug fix : correct definition for some database values