add possibility to "sync" with local database