Minor tweak

Fixed long standing typo in database update -- $f was completely irrelevant