Initail Database and home page JS