various helper class for mysql, serial, etc