Fixing typo in updatedatabase