sqlite and mysql database sync working