Possible database bug fix?