public int updateAccount(Account acc) {
            int rows = conn.Update(acc);

            if (rows == 1)
                return rows;
            else return 0;
        }
        public AccountInfo() {
            this.InitializeComponent();

            myApp = (Application.Current) as App;
            dc = new DataContext();
            a = dc.getAccount(myApp._accountId);
        }
        public int createNewAccount(Account acc) {

            try {
                int rows = conn.Insert(acc);
                return rows;
            }
            catch (SQLiteException) {
                return 0;
            }
            
        }