now inserts the sides into the db on
aded basic error handling with rollback
Prints the error message and successfuly rolls back error