converts mysql database to sqlite if it has changed