cleaned databse scripts