Fix getPrefixDb() thx to @mbainrot for reporting