Checking if error on mysql connect for create tables