Modify initDb and fix home page