write scripts of init dev database