switch from sqlite to mysql (needs for a thread safe db)