Added functionality to sync sqlite with mysql db