C# SQL command line monodevelop
<p>I am running monodevelop on arch linux and I tried to insert some values into a local database , but when I run it from a button the application closes.The file is created and it have all fields.
Here is my code:</p>

<pre><code>SqliteConnection m_dbConnection = new SqliteConnection ("Data Source=GOOD_FOOD.sqlite;Version=3;");
        m_dbConnection.Open ();

        int id;
        string get = "SELECT LAST(id_client) FROM Clienti";
        SqliteCommand comSelect = new SqliteCommand (get, m_dbConnection);

        int? getid = (int?)comSelect.ExecuteScalar();
        if (getid.HasValue) {
            id = Convert.ToInt32(getid) + 1;
        } else 
        {
            id = 1;
        }

        // create account

        string create = "INSERT INTO Clienti (id_client, parola, nume, prenume, adresa, email) VALUES (@id, @parola, @nume, @prenume, @adresa, @email)";
        SqliteCommand createcmd = new SqliteCommand (create, m_dbConnection);
        createcmd.Parameters.AddWithValue("@id", id);
        createcmd.Parameters.AddWithValue ("@parola", password.Text);
        createcmd.Parameters.AddWithValue("@nume", name.Text);
        createcmd.Parameters.AddWithValue ("@prenume", secondname.Text);
        createcmd.Parameters.AddWithValue("@adresa", address.Text);
        createcmd.Parameters.AddWithValue ("@email", email.Text);
        createcmd.ExecuteNonQuery ();

        m_dbConnection.Close ();
</code></pre>