little fixes mysql errors when no connect
little fixes mysql errors when no connect