Fix markDatabaseRowAsSynced to declare rowsToSync