revise db script, readme, and add js