Change some code to use a configured value for db file.