Send as many records as possible to local database at once