public void addNewProject(int pNo, string pName, int pBudget, string description, DateTime a, int projectLeaderPnr)
        {
            //Set isolation level
            TransactionOptions ops = new TransactionOptions();

            ops.IsolationLevel = System.Transactions.IsolationLevel.ReadCommitted;

            //Wrapp transaction
            using (TransactionScope trans = new TransactionScope(TransactionScopeOption.Required, ops))
            {
                try
                {
                    db.setProject(pNo, pName, pBudget, description, a, projectLeaderPnr);
                    db.SubmitChanges();
                    trans.Complete();
                }
                catch (SqlException e)
                {
                    MessageBox.Show(e.Message.ToString());
                }
                catch (TransactionAbortedException tab)
                {
                    MessageBox.Show(tab.Message.ToString());
                }
                catch (TransactionInDoubtException tib)
                {
                    MessageBox.Show(tib.Message.ToString());
                }
            }
        }