Use https and fix mysql bug