S08E03_MySQLite: ported DB code from Mike