initial work for mysql handler