Added macros for delay times in Arduino code. Added trys for each database querys so there will be no more sql server crashes.