UPDETED DB SCRIPT YET AGAIN

added a transaction to inserts to secure propper data inserts