fix some issues (mysql, warning)

still a bug on swift-proxy