20141031 modify all codes for mysql