- Better error checking
- Error checking will now print timestamp
- Checks for db connection first as it was timing out before