Fix typo preventing writing to DB file