Fix MySQL Connection issue resulting in NullPointers