Finished database read/writes

Major:
• Completed SQL read/writes
•• Pull test details into data structures
•• Post set data
•• Post point data
• Renamed field IDs

Minor:
• Fixed mod problem
• Added some exit codes
• Changed PPS to TPS
• Converted some printouts to logs