Fix bugs. Modify db file.