Synchronise sqlite database