use mysql instead sqlite3, use logging