Modify codes and add database scripts.