new db and fixed the script