Added error checking to GDT
Got rudimentary GDT-application link working
Need to fix writing to the database
Got database writing working again