public static void insertMessage(String newMessage, int ID){
		Connection conn = null;
		PreparedStatement ps = null;
		try{
     
        String msg = newMessage;
			conn = DBConnection.getConnection();
			
			//Scanner scanner = new Scanner(System.in);
			//System.out.println("Type in your message!");
			//String message = scanner.nextLine();
			
        
			
			//insert the message into the db
			System.out.println("Inserting message into the msg table");
			String query = "INSERT INTO messages " + "VALUES(?, ?, ?, ?)";
			ps = conn.prepareStatement(query);
			ps.setNull(1, java.sql.Types.INTEGER);
			ps.setInt(2, ID); //this is just some arbitrary number, we need a getter/setter
			ps.setString(3, msg);
			ps.setDate(4, getCurrentDate());
			ps.executeUpdate();
			
		}catch(SQLException se){
		      //Handle errors for JDBC
		      se.printStackTrace();
		   }catch(Exception e){
		      //Handle errors for Class.forName
		      e.printStackTrace();
		   }finally{
		      //finally block used to close resources
		      try{
		         if(ps!=null)
		            conn.close();
		      }catch(SQLException se){
		      }// do nothing
		      try{
		         if(conn!=null)
		            conn.close();
		      }catch(SQLException se){
		         se.printStackTrace();
		      }//end finally try
		   }//end try
		   System.out.println("Goodbye!");
		}//end main