Added getMessages to catch statements

Better error checking in DBTesting code