Fixed an off-by one bug in process_all_nic_stats and updated format conversions
Updated format conversions for all of database.