Fixed a problem where the database was not updated if only one array was
updated (not both).