public static void execInsert (String query)  {
        Statement st = null;
        Connection dbConnection = null;
        try {
            dbConnection = getDBConnection();
            st = dbConnection.createStatement();
            st.executeUpdate(query);
        } catch (SQLException e) {
            e.getMessage();
        }
        finally {
            if (st != null) {
                try {
                    st.close();
                } catch (SQLException e) {
                    e.printStackTrace();
                }
            }
            if (dbConnection != null) {
                try {
                    dbConnection.close();
                } catch (SQLException e) {
                    e.printStackTrace();
                }
            }
        }
    }