public static void changeUserLastLogDate (User user) {
        try {
            Connection conn = DriverManager.getConnection(Utils.DB_URL);
            PreparedStatement prS = conn.prepareStatement("update user set date_lastlog = ? where name = '" + user.getName() + "'");
            prS.setString(1, Utils.getTodaysDate());
            prS.execute();
            System.out.println("Date edited!");
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }