Add mysql and partial connection logic.