Handle synchronisation of data properly when there are no collections in local database.