public void deleteEvent() {
        if (id != null) {
            PreparedStatement st = null;
            String q = "DELETE FROM events WHERE id = ?";

            try {
                conn = dbconn.getConnection();
                st = conn.prepareStatement(q);
                st.setInt(1, this.id.intValue());
                st.executeUpdate();
            } catch (SQLException e) {
                e.printStackTrace();
            } finally {
                try {
                    conn.close();
                    st.close();
                } catch (SQLException e) {
                    System.out.println("Unable to close connection");
                }
            }
        } else {
            System.out.println("Unable to delete event because id is null");
        }
    }